Display Name = "Dark Tower 1F"
Parallax Name = ""
Note = ""

CommonEvent 1
Name = "EV001"

  Page 0
    ShowTextAttributes(["", 0, 0, 2])
    ShowText(["The magic circle seems to be a warp device, but it is not activated."])
    ShowText(["It seems we need to activate it somehow..."])
    Empty([])

  Page 1
    PlaySE(["RPG::SE(@name=\"Magic2\", @pitch=100, @volume=80)"])
    TransferPlayer([0, 398, 22, 20, 2, 1])
    Empty([])

CommonEvent 2
Name = "EV002"

  Page 0
    PlaySE(["RPG::SE(@name=\"Magic2\", @pitch=100, @volume=80)"])
    TransferPlayer([0, 397, 27, 11, 2, 1])
    Empty([])

CommonEvent 3
Name = "EV003"

  Page 0
    PlaySE(["RPG::SE(@name=\"Magic2\", @pitch=100, @volume=80)"])
    TransferPlayer([0, 395, 22, 6, 2, 1])
    Empty([])

CommonEvent 4
Name = "EV004"

  Page 0
    PlaySE(["RPG::SE(@name=\"Magic2\", @pitch=100, @volume=80)"])
    TransferPlayer([0, 396, 22, 6, 2, 1])
    Empty([])

CommonEvent 5
Name = "EV005"

  Page 0
    PlaySE(["RPG::SE(@name=\"Switch2\", @pitch=150, @volume=80)"])
    ControlSwitches([3016, 3016, 0])
    ConditionalBranch([0, 3017, 1])
      ConditionalBranch([0, 1026, 0])
        ShowTextAttributes(["iriasu_fc4", 2, 0, 2])
        ShowText(["\\n<Ilias>"])
        ShowText(["Nothing is happening..."])
        ShowText(["Could there be other mechanisms?"])
        Empty([])
      BranchEnd([])
      ConditionalBranch([0, 1027, 0])
        ShowTextAttributes(["iriasu_fc1", 0, 0, 2])
        ShowText(["\\n<Ilias>"])
        ShowText(["Nothing is happening..."])
        ShowText(["Could there be other mechanisms?"])
        Empty([])
      BranchEnd([])
      ConditionalBranch([0, 1028, 0])
        ShowTextAttributes(["iriasu_fc3", 0, 0, 2])
        ShowText(["\\n<Ilias>"])
        ShowText(["Nothing is happening..."])
        ShowText(["Could there be other mechanisms?"])
        Empty([])
      BranchEnd([])
      Empty([])

    BranchEnd([])
    ConditionalBranch([0, 3017, 0])
      ControlSwitches([3497, 3497, 0])
      PlaySE(["RPG::SE(@name=\"Magic1\", @pitch=100, @volume=80)"])
      ShowTextAttributes(["", 0, 0, 2])
      ShowText(["I heard the sound of the magic circle activating on this floor!"])
      Empty([])

    BranchEnd([])
    Empty([])

  Page 1
    Empty([])

CommonEvent 6
Name = "EV006"

  Page 0
    PlaySE(["RPG::SE(@name=\"Switch2\", @pitch=150, @volume=80)"])
    ControlSwitches([3017, 3017, 0])
    ConditionalBranch([0, 3016, 1])
      ConditionalBranch([0, 1026, 0])
        ShowTextAttributes(["iriasu_fc4", 2, 0, 2])
        ShowText(["\\n<Ilias>"])
        ShowText(["Nothing is happening..."])
        ShowText(["Could there be other mechanisms?"])
        Empty([])
      BranchEnd([])
      ConditionalBranch([0, 1027, 0])
        ShowTextAttributes(["iriasu_fc1", 0, 0, 2])
        ShowText(["\\n<Ilias>"])
        ShowText(["Nothing is happening..."])
        ShowText(["Could there be other mechanisms?"])
        Empty([])
      BranchEnd([])
      ConditionalBranch([0, 1028, 0])
        ShowTextAttributes(["iriasu_fc3", 0, 0, 2])
        ShowText(["\\n<Ilias>"])
        ShowText(["Nothing is happening..."])
        ShowText(["Could there be other mechanisms?"])
        Empty([])
      BranchEnd([])
      Empty([])

    BranchEnd([])
    ConditionalBranch([0, 3016, 0])
      ControlSwitches([3497, 3497, 0])
      PlaySE(["RPG::SE(@name=\"Magic1\", @pitch=100, @volume=80)"])
      Empty([])

    BranchEnd([])
    Empty([])

  Page 1
    Empty([])

CommonEvent 7
Name = "EV007"

  Page 0
    Empty([])

CommonEvent 8
Name = "EV008"

  Page 0
    Empty([])

CommonEvent 9
Name = "EV009"

  Page 0
    Empty([])

CommonEvent 10
Name = "EV010"

  Page 0
    Empty([])

CommonEvent 11
Name = "EV011"

  Page 0
    Empty([])

CommonEvent 12
Name = "EV012"

  Page 0
    Empty([])

CommonEvent 13
Name = "EV013"

  Page 0
    Empty([])

CommonEvent 14
Name = "EV014"

  Page 0
    Empty([])

CommonEvent 15
Name = "EV015"

  Page 0
    ShowTextAttributes(["", 0, 0, 2])
    ShowText(["Shall both teams escape the tower and regroup?"])
    ShowChoices([["Escape", "Do not escape"], 2])
    When([0, "脱出する"])
      ControlSwitches([100, 100, 1])
      PlaySE(["RPG::SE(@name=\"Move\", @pitch=100, @volume=80)"])
      FadeoutScreen([])
      Wait([30])
      Script(["end_multiparty"])
      TransferPlayer([0, 382, 16, 17, 2, 0])
      FadeinScreen([])
      Empty([])

    When([1, "脱出しない"])
      SetMoveRoute([-1, "RPG::MoveRoute(@repeat=false, @skippable=false, @wait=true, @list=[\"RPG::MoveCommand(@code=4, @parameters=[])\", \"RPG::MoveCommand(@code=0, @parameters=[])\"])"])
      Unnamed(["RPG::MoveCommand(@code=4, @parameters=[])"])
      Empty([])

    ChoicesEnd([])
    Empty([])

CommonEvent 16
Name = "EV016"

  Page 0
    ShowTextAttributes(["", 0, 0, 2])
    ShowText(["Shall both teams escape the tower and regroup?"])
    ShowChoices([["Escape", "Do not escape"], 2])
    When([0, "脱出する"])
      ControlSwitches([100, 100, 1])
      PlaySE(["RPG::SE(@name=\"Move\", @pitch=100, @volume=80)"])
      FadeoutScreen([])
      Wait([30])
      Script(["end_multiparty"])
      TransferPlayer([0, 382, 16, 17, 2, 0])
      FadeinScreen([])
      Empty([])

    When([1, "脱出しない"])
      SetMoveRoute([-1, "RPG::MoveRoute(@repeat=false, @skippable=false, @wait=true, @list=[\"RPG::MoveCommand(@code=4, @parameters=[])\", \"RPG::MoveCommand(@code=0, @parameters=[])\"])"])
      Unnamed(["RPG::MoveCommand(@code=4, @parameters=[])"])
      Empty([])

    ChoicesEnd([])
    Empty([])

CommonEvent 17
Name = "EV017"

  Page 0
    ShowTextAttributes(["", 0, 0, 2])
    ShowText(["Shall both teams escape the tower and regroup?"])
    ShowChoices([["Escape", "Do not escape"], 2])
    When([0, "脱出する"])
      ControlSwitches([100, 100, 1])
      PlaySE(["RPG::SE(@name=\"Move\", @pitch=100, @volume=80)"])
      FadeoutScreen([])
      Wait([30])
      Script(["end_multiparty"])
      TransferPlayer([0, 382, 16, 17, 2, 0])
      FadeinScreen([])
      Empty([])

    When([1, "脱出しない"])
      SetMoveRoute([-1, "RPG::MoveRoute(@repeat=false, @skippable=false, @wait=true, @list=[\"RPG::MoveCommand(@code=4, @parameters=[])\", \"RPG::MoveCommand(@code=0, @parameters=[])\"])"])
      Unnamed(["RPG::MoveCommand(@code=4, @parameters=[])"])
      Empty([])

    ChoicesEnd([])
    Empty([])

CommonEvent 18
Name = "EV018"

  Page 0
    PlaySE(["RPG::SE(@name=\"Chest\", @pitch=100, @volume=80)"])
    SetMoveRoute([0, "RPG::MoveRoute(@repeat=false, @skippable=false, @wait=true, @list=[\"RPG::MoveCommand(@code=36, @parameters=[])\", \"RPG::MoveCommand(@code=17, @parameters=[])\", \"RPG::MoveCommand(@code=15, @parameters=[3])\", \"RPG::MoveCommand(@code=18, @parameters=[])\", \"RPG::MoveCommand(@code=15, @parameters=[3])\", \"RPG::MoveCommand(@code=0, @parameters=[])\"])"])
    Unnamed(["RPG::MoveCommand(@code=36, @parameters=[])"])
    Unnamed(["RPG::MoveCommand(@code=17, @parameters=[])"])
    Unnamed(["RPG::MoveCommand(@code=15, @parameters=[3])"])
    Unnamed(["RPG::MoveCommand(@code=18, @parameters=[])"])
    Unnamed(["RPG::MoveCommand(@code=15, @parameters=[3])"])
    ControlSelfSwitch(["A", 0])
    ChangeItems([900, 0, 0, 1])
    Empty([])

  Page 1
    Empty([])

CommonEvent 19
Name = "EV019"

  Page 0
    PlaySE(["RPG::SE(@name=\"Chest\", @pitch=100, @volume=80)"])
    SetMoveRoute([0, "RPG::MoveRoute(@repeat=false, @skippable=false, @wait=true, @list=[\"RPG::MoveCommand(@code=36, @parameters=[])\", \"RPG::MoveCommand(@code=17, @parameters=[])\", \"RPG::MoveCommand(@code=15, @parameters=[3])\", \"RPG::MoveCommand(@code=18, @parameters=[])\", \"RPG::MoveCommand(@code=15, @parameters=[3])\", \"RPG::MoveCommand(@code=0, @parameters=[])\"])"])
    Unnamed(["RPG::MoveCommand(@code=36, @parameters=[])"])
    Unnamed(["RPG::MoveCommand(@code=17, @parameters=[])"])
    Unnamed(["RPG::MoveCommand(@code=15, @parameters=[3])"])
    Unnamed(["RPG::MoveCommand(@code=18, @parameters=[])"])
    Unnamed(["RPG::MoveCommand(@code=15, @parameters=[3])"])
    ControlSelfSwitch(["A", 0])
    ChangeItems([863, 0, 0, 1])
    Empty([])

  Page 1
    Empty([])

CommonEvent 20
Name = "EV020"

  Page 0
    PlaySE(["RPG::SE(@name=\"Item1\", @pitch=100, @volume=80)"])
    ControlSelfSwitch(["A", 0])
    ChangeItems([913, 0, 0, 1])
    Empty([])

  Page 1
    Empty([])

CommonEvent 21
Name = "EV021"

  Page 0
    PlaySE(["RPG::SE(@name=\"Item1\", @pitch=100, @volume=80)"])
    ControlSelfSwitch(["A", 0])
    ChangeItems([901, 0, 0, 1])
    Empty([])

  Page 1
    Empty([])

CommonEvent 22
Name = "EV022"

  Page 0
    ConditionalBranch([12, "unlock_level < 1"])
      ShowTextAttributes(["", 0, 0, 2])
      ShowText(["The chest is locked..."])
      ExitEventProcessing([])
      Empty([])

    BranchEnd([])
    PlaySE(["RPG::SE(@name=\"Chest\", @pitch=100, @volume=80)"])
    SetMoveRoute([0, "RPG::MoveRoute(@repeat=false, @skippable=false, @wait=true, @list=[\"RPG::MoveCommand(@code=36, @parameters=[])\", \"RPG::MoveCommand(@code=17, @parameters=[])\", \"RPG::MoveCommand(@code=15, @parameters=[3])\", \"RPG::MoveCommand(@code=18, @parameters=[])\", \"RPG::MoveCommand(@code=15, @parameters=[3])\", \"RPG::MoveCommand(@code=0, @parameters=[])\"])"])
    Unnamed(["RPG::MoveCommand(@code=36, @parameters=[])"])
    Unnamed(["RPG::MoveCommand(@code=17, @parameters=[])"])
    Unnamed(["RPG::MoveCommand(@code=15, @parameters=[3])"])
    Unnamed(["RPG::MoveCommand(@code=18, @parameters=[])"])
    Unnamed(["RPG::MoveCommand(@code=15, @parameters=[3])"])
    ControlSelfSwitch(["A", 0])
    ChangeItems([3802, 0, 0, 1])
    Empty([])

  Page 1
    Empty([])

CommonEvent 23
Name = "EV023"

  Page 0
    ConditionalBranch([12, "unlock_level < 1"])
      ShowTextAttributes(["", 0, 0, 2])
      ShowText(["The chest is locked..."])
      ExitEventProcessing([])
      Empty([])

    BranchEnd([])
    PlaySE(["RPG::SE(@name=\"Chest\", @pitch=100, @volume=80)"])
    SetMoveRoute([0, "RPG::MoveRoute(@repeat=false, @skippable=false, @wait=true, @list=[\"RPG::MoveCommand(@code=36, @parameters=[])\", \"RPG::MoveCommand(@code=17, @parameters=[])\", \"RPG::MoveCommand(@code=15, @parameters=[3])\", \"RPG::MoveCommand(@code=18, @parameters=[])\", \"RPG::MoveCommand(@code=15, @parameters=[3])\", \"RPG::MoveCommand(@code=0, @parameters=[])\"])"])
    Unnamed(["RPG::MoveCommand(@code=36, @parameters=[])"])
    Unnamed(["RPG::MoveCommand(@code=17, @parameters=[])"])
    Unnamed(["RPG::MoveCommand(@code=15, @parameters=[3])"])
    Unnamed(["RPG::MoveCommand(@code=18, @parameters=[])"])
    Unnamed(["RPG::MoveCommand(@code=15, @parameters=[3])"])
    ControlSelfSwitch(["A", 0])
    ChangeItems([3856, 0, 0, 1])
    Empty([])

  Page 1
    Empty([])

CommonEvent 24
Name = "EV024"

  Page 0
    ControlVariables([1334, 1334, 0, 0, 3])
    ShowTextAttributes(["ruka_fc1", 0, 0, 2])
    ShowText(["\\n<Luka>"])
    ShowText(["From a quick glance, it looks like there are quite a few mechanisms here."])
    ShowText(["Let's aim for the upper floors while cooperating with the other group!"])
    ShowTextAttributes(["", 0, 0, 2])
    ShowText(["Party switch: X button (Keyboard: S key)"])
    ShowText(["Let's conquer the Tower of Light and the Tower of Darkness by switching between the two parties."])
    ExitEventProcessing([])
    Empty([])

  Page 1
    Empty([])

CommonEvent 25
Name = "EV025"

  Page 0
    PlaySE(["RPG::SE(@name=\"Heal7\", @pitch=100, @volume=80)"])
    FlashScreen(["Color(@red=255.0, @green=255.0, @blue=255.0, @alpha=255.0)", 30, true])
    RecoverAll([0, 0])
    ShowTextAttributes(["", 0, 0, 2])
    ShowText(["The party's HP and MP have been fully recovered!"])
    Wait([30])
    ConditionalBranch([0, 3480, 1])
      ShowTextAttributes(["", 0, 0, 2])
      ShowText(["It seems there is a warp function, but the destination is not registered..."])
      ExitEventProcessing([])
      Empty([])

    BranchEnd([])
    ConditionalBranch([0, 3480, 0])
      ShowTextAttributes(["", 0, 0, 2])
      ShowText(["Where do you want to warp to?"])
      ShowChoices([["Entrance", "Deepest part", "Quit"], 3])
      When([0, "入り口"])
        PlaySE(["RPG::SE(@name=\"Magic2\", @pitch=100, @volume=80)"])
        TransferPlayer([0, 394, 20, 38, 2, 1])
        ExitEventProcessing([])
        Empty([])
      When([1, "最奥"])
        PlaySE(["RPG::SE(@name=\"Magic2\", @pitch=100, @volume=80)"])
        TransferPlayer([0, 402, 20, 11, 2, 1])
        ExitEventProcessing([])
        Empty([])
      When([2, "やめる"])
        ExitEventProcessing([])
        Empty([])
      ChoicesEnd([])
      Empty([])

    BranchEnd([])
    Empty([])

CommonEvent 26
Name = "EV026"

  Page 0
    ConditionalBranch([0, 448, 1])
      CallCommonEvent([9140])
      Empty([])

    BranchEnd([])
    ShowTextAttributes(["iriasu_fc6", 0, 0, 2])
    ShowText(["\\n<Dungeon Spirit>"])
    ShowText(["Proceed while switching between the two parties."])
    ShowText(["If one gets stuck, it's recommended to switch to the other."])
    Empty([])

CommonEvent 27
Name = "EV027"

  Page 0
    ConditionalBranch([0, 448, 1])
      CallCommonEvent([9140])
      Empty([])

    BranchEnd([])
    ShowTextAttributes(["iriasu_fc6", 0, 0, 2])
    ShowText(["\\n<Dungeon Spirit>"])
    ShowText(["This is a device for warping directly to the deepest part."])
    ShowText(["Of course, it cannot be activated until you reach the deepest part on your own at least once."])
    Empty([])

CommonEvent 28
Name = "EV028"

  Page 0
    ConditionalBranch([0, 448, 1])
      CallCommonEvent([9140])
      Empty([])

    BranchEnd([])
    ShowTextAttributes(["iriasu_fc6", 0, 0, 2])
    ShowText(["\\n<Dungeon Spirit>"])
    ShowText(["This is a warp magic circle to proceed to the upper floors, but..."])
    ShowText(["It is not activated now and cannot be used."])
    ShowTextAttributes(["iriasu_fc6", 0, 0, 2])
    ShowText(["\\n<Dungeon Spirit>"])
    ShowText(["To activate it, you need to operate two devices."])
    ShowText(["For now, let's pass it by and head upward."])
    Empty([])

  Page 1
    ConditionalBranch([0, 448, 1])
      CallCommonEvent([9140])
      Empty([])

    BranchEnd([])
    ShowTextAttributes(["iriasu_fc6", 0, 0, 2])
    ShowText(["\\n<Dungeon Spirit>"])
    ShowText(["With this, the warp magic circle has been activated."])
    ShowText(["Now, let's proceed to the upper floors."])
    Empty([])

CommonEvent 29
Name = "EV029"

  Page 0
    ConditionalBranch([0, 448, 1])
      CallCommonEvent([9140])
      Empty([])

    BranchEnd([])
    ConditionalBranch([0, 3497, 1])
      ShowTextAttributes(["iriasu_fc6", 0, 0, 2])
      ShowText(["\\n<Dungeon Spirit>"])
      ShowText(["Let's use this warp crystal to jump to the 4F."])
      Empty([])

    BranchEnd([])
    ConditionalBranch([0, 3497, 0])
      ShowTextAttributes(["iriasu_fc6", 0, 0, 2])
      ShowText(["\\n<Dungeon Spirit>"])
      ShowText(["You've returned to the 1F."])
      ShowText(["The warp magic circle below is activated, so let's move forward."])
      Empty([])

    BranchEnd([])
    Empty([])

CommonEvent 30
Name = "EV030"

  Page 0
    ConditionalBranch([0, 448, 1])
      CallCommonEvent([9140])
      Empty([])

    BranchEnd([])
    ConditionalBranch([0, 3017, 1])
      ShowTextAttributes(["iriasu_fc6", 0, 0, 2])
      ShowText(["\\n<Dungeon Spirit>"])
      ShowText(["This is a warp device to the 3F."])
      ShowText(["Go down and press the button."])
      Empty([])

    BranchEnd([])
    ConditionalBranch([0, 3017, 0])
      ShowTextAttributes(["iriasu_fc6", 0, 0, 2])
      ShowText(["\\n<Dungeon Spirit>"])
      ShowText(["This is a warp device to the 3F."])
      ShowText(["Now, let's go back."])
      Empty([])

    BranchEnd([])
    Empty([])

CommonEvent 31
Name = "EV031"

  Page 0
    ConditionalBranch([0, 448, 1])
      CallCommonEvent([9140])
      Empty([])

    BranchEnd([])
    ShowTextAttributes(["iriasu_fc6", 0, 0, 2])
    ShowText(["\\n<Dungeon Spirit>"])
    ShowText(["There's a treasure chest here."])
    Empty([])

CommonEvent 32
Name = "EV032"

  Page 0
    ConditionalBranch([0, 448, 1])
      CallCommonEvent([9140])
      Empty([])

    BranchEnd([])
    ShowTextAttributes(["iriasu_fc6", 0, 0, 2])
    ShowText(["\\n<Dungeon Spirit>"])
    ShowText(["This way..."])
    Empty([])

CommonEvent 33
Name = "EV033"

  Page 0
    ConditionalBranch([0, 448, 1])
      CallCommonEvent([9140])
      Empty([])

    BranchEnd([])
    ConditionalBranch([0, 3016, 1])
      ShowTextAttributes(["iriasu_fc6", 0, 0, 2])
      ShowText(["\\n<Dungeon Spirit>"])
      ShowText(["With this, one of the buttons has been pressed."])
      ShowText(["Now, let's return to the 4F and head to the other button."])
      Empty([])

    BranchEnd([])
    ConditionalBranch([0, 3016, 0])
      ShowTextAttributes(["iriasu_fc6", 0, 0, 2])
      ShowText(["\\n<Dungeon Spirit>"])
      ShowText(["If you press both buttons, the warp magic circle on the 1F will activate."])
      ShowText(["Then, let's head back to the 1F."])
      Empty([])

    BranchEnd([])
    Empty([])

CommonEvent 34
Name = "EV034"

  Page 0
    ConditionalBranch([0, 448, 1])
      CallCommonEvent([9140])
      Empty([])

    BranchEnd([])
    ConditionalBranch([0, 3017, 1])
      ShowTextAttributes(["iriasu_fc6", 0, 0, 2])
      ShowText(["\\n<Dungeon Spirit>"])
      ShowText(["With this, one of the buttons has been pressed."])
      ShowText(["Now, let's return to the 4F and head to the other button."])
      Empty([])

    BranchEnd([])
    ConditionalBranch([0, 3017, 0])
      ShowTextAttributes(["iriasu_fc6", 0, 0, 2])
      ShowText(["\\n<Dungeon Spirit>"])
      ShowText(["If you press both buttons, the warp magic circle on the 1F will activate."])
      ShowText(["Then, let's head back to the 1F."])
      Empty([])

    BranchEnd([])
    Empty([])

CommonEvent 35
Name = "EV035"

  Page 0
    ConditionalBranch([0, 448, 1])
      CallCommonEvent([9140])
      Empty([])

    BranchEnd([])
    ShowTextAttributes(["iriasu_fc6", 0, 0, 2])
    ShowText(["\\n<Dungeon Spirit>"])
    ShowText(["There's a treasure chest here."])
    Empty([])

CommonEvent 36
Name = "EV036"

  Page 0
    ConditionalBranch([0, 448, 1])
      CallCommonEvent([9140])
      Empty([])

    BranchEnd([])
    ShowTextAttributes(["iriasu_fc6", 0, 0, 2])
    ShowText(["\\n<Dungeon Spirit>"])
    ShowText(["Now, this way..."])
    Empty([])

CommonEvent 37
Name = "EV037"

  Page 0
    ConditionalBranch([0, 448, 1])
      CallCommonEvent([9140])
      Empty([])

    BranchEnd([])
    ConditionalBranch([0, 3016, 1])
      ShowTextAttributes(["iriasu_fc6", 0, 0, 2])
      ShowText(["\\n<Dungeon Spirit>"])
      ShowText(["This is the warp device to the 2F."])
      ShowText(["Go down and press the button."])
      Empty([])

    BranchEnd([])
    ConditionalBranch([0, 3016, 0])
      ShowTextAttributes(["iriasu_fc6", 0, 0, 2])
      ShowText(["\\n<Dungeon Spirit>"])
      ShowText(["This is the warp device to the 2F."])
      ShowText(["Now, let's go back."])
      Empty([])

    BranchEnd([])
    Empty([])
